<?php

$con = mysql_pconnect('localhost', 'root', 'Spring2012');

if ($con === false) {
	throw new Exception("Could not connect to the database server: ". mysql_error(), 500);
}

if (mysql_select_db('canoodle') === false) {
	throw new Exception("Could not connect to the database: ". mysql_error(), 500);
}